// @ts-ignore
/* eslint-disable */
import request from "../request/request";

/** addLeaveTab POST /api/leaveTab/add */
export async function addLeaveTabUsingPost(body, options) {
  return request("/api/leaveTab/add", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteLeaveTab POST /api/leaveTab/delete */
export async function deleteLeaveTabUsingPost(body, options) {
  return request("/api/leaveTab/delete", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** editLeaveTab POST /api/leaveTab/edit */
export async function editLeaveTabUsingPost(body, options) {
  return request("/api/leaveTab/edit", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** getLeaveTabVOById GET /api/leaveTab/get/vo */
export async function getLeaveTabVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params,
  options
) {
  return request("/api/leaveTab/get/vo", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listLeaveTabByPage POST /api/leaveTab/list/page */
export async function listLeaveTabByPageUsingPost(body, options) {
  return request("/api/leaveTab/list/page", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listLeaveTabVOByPage POST /api/leaveTab/list/page/vo */
export async function listLeaveTabVoByPageUsingPost(body, options) {
  return request("/api/leaveTab/list/page/vo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listMyLeaveTabVOByPage POST /api/leaveTab/my/list/page/vo */
export async function listMyLeaveTabVoByPageUsingPost(body, options) {
  return request("/api/leaveTab/my/list/page/vo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** doAppReview POST /api/leaveTab/review */
export async function doAppReviewUsingPost(body, options) {
  return request("/api/leaveTab/review", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** updateLeaveTab POST /api/leaveTab/update */
export async function updateLeaveTabUsingPost(body, options) {
  return request("/api/leaveTab/update", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
